<?php

declare(strict_types=1);

namespace App\Model;


/**
 * @property int $id ID
 * @property string $vendor 服务商
 * @property string $domain 节点域名
 * @property string $filepath 文件路径
 * @property string $filename 文件名称
 * @property string $filemd5 文件MD5
 * @property int $filesize 文件大小
 * @property string $fileext 文件后缀
 * @property int $add_time 上传时间
 */
class Attachment extends Model
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'attachment';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'vendor', 'domain', 'filepath', 'filename', 'filemd5', 'filesize', 'fileext', 'add_time'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'filesize' => 'integer', 'add_time' => 'integer'];
}
